﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Windows.Forms.Design;
namespace TH10_Dat_Tools
{
    public class LocalDirDlg : FolderNameEditor
    {
        FolderNameEditor.FolderBrowser fDialog = new System.Windows.Forms.Design.FolderNameEditor.FolderBrowser();

        public LocalDirDlg()
        {

        }

        public DialogResult DisplaySourceDialog()
        {
            return DisplayDialog("请选择源目录");
        }

        public DialogResult DisplayTargetDialog()
        {
            return DisplayDialog("请选择目标目录");
        }

        public DialogResult DisplayDialog(string description)
        {
            fDialog.Description = description;
            return fDialog.ShowDialog();
        }

        ///   <summary>   
        ///   获得当前路径   
        ///   </summary>   
        public string Path
        {
            get
            {
                return fDialog.DirectoryPath;
            }
        }
    }
}